package com.matrix.java.chap_11.exercise;

/**
 * 11-11
 */
public class Circle {
    private double radius;

    public Circle(double radius) {
        radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public double getArea() {
        return radius * radius * Math.PI;
    }
}

class B1 extends Circle {
    private double length;

    public B1(double radius, double length) {
        super(radius);
        new Circle(radius);
        length = length;
    }

    @Override
    public double getArea() {
        return getArea() * length;
    }
}
